<template>
  <view class="container">
    <view class="header">
      <uni-icons type="left" size="23" style="vertical-align: middle" @click="goback"></uni-icons>
      <text style="font-size: 36rpx; font-family: PingFang SC, PingFang SC; font-weight: bold; color: #222222; padding-left: 20rpx">关于我们</text>
    </view>

    <view class="box">
      <image :src="obj.site_logo" mode="aspectFill" style="width: 196rpx; height: 196rpx"></image>
    </view>
    <view style="text-align: center; font-size: 32rpx; font-family: PingFang SC, PingFang SC; font-weight: bold; color: #000000">{{ obj.site_name }}</view>
    <view style="position: fixed; bottom: 20rpx; color: #666666; font-size: 28rpx; width: 100%; text-align: center">{{ obj.site_copyright }}</view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      obj: {}
    };
  },
  onLoad() {
    this.getkefuphone();
  },
  methods: {
    // 获取初始化数据
    async getkefuphone() {
      const res = await uni.$http.get('common/init');
      console.log(res.data.data);
      this.obj = res.data.data;
    },
    goback() {
      uni.navigateBack();
    }
  }
};
</script>

<style lang="scss" scoped>
.container {
  box-sizing: border-box;
  .header {
    margin-top: 60rpx;
    margin-left: 30rpx;
  }
  .box {
    margin: 242rpx 277rpx 0 277rpx;
  }
}
</style>
